/***********************************************************************************
@file   
@attention
***********************************************************************************/
#ifndef __INFRARED_H
#define __INFRARED_H
#include "main.h"

//#define menu_right_col(n)   do  {if(col_flag==0)   col_flag=n;   else col_flag--;}while(0)//菜单选项上下左右移动
//#define menu_left_col(n)    do  {if(col_flag>=n)   col_flag=0;   else col_flag++;}while(0)
//#define menu_up_row(n)      do  {if(row_flag==0)   row_flag=n;   else row_flag--;}while(0)
//#define menu_down_row(n)    do  {if(row_flag>=n)   row_flag=0;   else row_flag++;}while(0)
/* Private includes ----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private typedef -----------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function ----------------------------------------------------------*/
extern void infrared_total(uint8_t value);
extern void infrared_unit(void);
#endif